package com.service.thirddatacenter.hpool.mapper;

import com.service.thirddatacenter.hpool.model.entity.AccountMinerEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 矿机
 *
 * @date 2021-06-08 15:41:03
 */
@Mapper
public interface AccountMinerMapper extends BaseMapper<AccountMinerEntity> {

	/**
	 * @Description: 统计商家所有某类型矿机的在线算力
	 * @Author: ty
	 * @Date: 2021/6/22 15:38
	 * @param: [accountIds, minerType]
	 * @return: java.math.BigDecimal
	 **/
	BigDecimal totalOnline(@Param("accountIds") List<Integer> accountIds, @Param("minerType") String minerType,@Param("minerStatus")Integer minerStatus);
}
